/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package daoGenerico;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Ana
 */
public class JPAManager {
    private static EntityManagerFactory emf=Persistence.createEntityManagerFactory("SistemaCaronaPU");
    public EntityManager getManager(){
        return emf.createEntityManager();
    }
}
